Information display method and apparatus, and storage medium and electronic device

ABSTRACT

An information display method and apparatus, and a computer-readable storage medium and an electronic device. The method includes: determining a target font category to be written in response to an operation of a user on a display device page; determining a target font conversion model corresponding to the target font category in a model library, wherein the model library including font conversion models corresponding to a plurality of font categories; in response to a writing operation of the user on the display device page, determining a standard word corresponding to the writing operation according to a writing trajectory of the writing operation, and generating an initial bitmap corresponding to the standard word; and converting the initial bitmap of the standard word into a target bitmap corresponding to the target font category using the target font conversion model and displaying the target bitmap on the display device page.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a 371 application of PCT Application No.PCT/CN2021/112348, filed Aug. 12, 2021, which claims the benefit of andpriority to Chinese Patent Application No. 202010993918.6, filed on Sep.21, 2020 and titled “INFORMATION DISPLAY METHOD AND APPARATUS, STORAGEMEDIUM AND ELECTRONIC DEVICE”, contents of which are incorporated byreference herein in their entireties.

TECHNICAL FIELD

The present disclosure relates to the information presentation technicalfield, and in particular, to an information presentation method anddevice, a computer-readable storage medium and an electronic device.

BACKGROUND

With the rapid developments of the touch display field, inputting wordson a touch display device with a hand has become more and more widelyused.

Most of touch display devices in related art perform display, renderingand optimization for handwriting, but an input and display function forprint words has not been integrated, or most of the touch displaydevices call the font display of the systems themselves. Thus, theexisting touch display devices have single style for print words andpoor display effect.

Therefore, it is necessary to propose a new information presentationmethod.

It should be noted that the information disclosed in the backgroundsection above is only used to enhance the understanding of thebackground of the present disclosure, and therefore may includeinformation that does not constitute the prior art known to thoseskilled in the art.

SUMMARY

According to an aspect of the present disclosure, there is provided aninformation presentation method, including:

-   -   determining a target font category to be written in response to        an operation of a user on a display device page;    -   determining a target font conversion model corresponding to the        target font category in a model library, wherein the model        library includes font conversion models corresponding to a        plurality of font categories;    -   in response to a writing operation of the user on the display        device page, determining a standard word corresponding to the        writing operation according to a writing trajectory of the        writing operation, and generating an initial bitmap        corresponding to the standard word; and    -   converting the initial bitmap of the standard word into a target        bitmap corresponding to the target font category using the        target font conversion model and displaying the target bitmap on        the display device page.

In an example embodiment of the present disclosure, before responding tothe writing operation of the user on the display device page, the methodfurther includes:

-   -   determining a font size, a font line thickness, a font color and        a font inclination angle of the target font category.

In an example embodiment of the present disclosure, in response to thewriting operation of the user on the display device page, determiningthe standard word corresponding to the writing operation according tothe writing trajectory of the writing operation, and generating theinitial bitmap corresponding to the standard word includes:

-   -   in response to a word writing operation of the user, performing        matching in a standard font file library according to the        writing trajectory to find a standard word corresponding to the        word writing operation; and    -   generating the initial bitmap of the standard word.

In an example embodiment of the present disclosure, generating theinitial bitmap of the standard word includes:

-   -   obtaining a vector outline shape of the standard word from the        standard font file library; and    -   performing rendering according to the vector outline shape to        obtain the initial bitmap.

In an example embodiment of the present disclosure, the method furtherincludes:

-   -   in response to an annotation starting operation of a user,        determining a to-be-annotated area, and displaying a selection        interface for the at least one candidate display font category        in the to-be-annotated area.

In an example embodiment of the present disclosure, determining thetarget font category to be written in response to the selectionoperation of the user on one category of at least one candidate displayfont category displayed on the display device page includes:

-   -   in response to a first operation of the user on a font selection        interface, presenting the at least one candidate display font        category; and    -   determining the target font category in response to a touch        operation of the user on a category on a presentation interface        for presenting the at least one candidate display font category.

In an example embodiment of the present disclosure, the display devicepage has a font category of an initially displayed font, and a fontcategory of an initially displayed word is a standard font;

-   -   the method further includes:    -   in response to a first font conversion operation of the user on        the initially displayed word, obtaining a bitmap of the        initially displayed word, and determining a first font category        corresponding to the first font conversion operation in the        candidate display font category;    -   determining a first font conversion model corresponding to the        first font category in the model library; and    -   converting the bitmap of the initially displayed word into a        first bitmap corresponding to the first font category using the        first font conversion model.

In an example embodiment of the present disclosure, obtaining the bitmapof the initially displayed word in response to the first font conversionoperation of the user on the initially displayed word, includes:

-   -   selecting at least one initially displayed word which is to be        converted; and    -   in response to a font conversion operation of the user on the at        least one initially displayed word which is to be converted,        obtaining a bitmap of the at least one initially displayed word        which is to be converted.

In an example embodiment of the present disclosure, converting thebitmap of the initially displayed word into the first bitmapcorresponding to the first font category using the first font conversionmodel includes:

-   -   determining position information of the bitmap of the at least        one initially displayed word which is to be converted;    -   converting the bitmap of the at least one initially displayed        word into the first bitmap using the first font conversion        model; and    -   arranging at least one first bitmap according to the position        information, and replacing, with the arranged first bitmap, the        bitmap of the at least one initially displayed word which is to        be converted.

In an example embodiment of the present disclosure, after converting theinitial bitmap of the standard word into the target bitmap correspondingto the target font category using the target font conversion model anddisplaying the target bitmap on the display device page, the methodfurther includes:

-   -   in response to a second font conversion operation of the user on        a target font, obtaining an initial bitmap corresponding to the        target bitmap;    -   determining a second font category corresponding to the second        font conversion operation in at least one candidate display font        category, and determining a second font conversion model        corresponding to the second font category in the model library;        and    -   converting the initial bitmap into a second bitmap corresponding        to the second font category using the second font conversion        model, and replacing the target bitmap.

In an example embodiment of the present disclosure, an input of the fontconversion model is a bitmap corresponding to a standard font, and anoutput of the font conversion model is a bitmap corresponding to acandidate display font category.

According to an aspect of the present disclosure, there is provided aninformation presentation device, including:

-   -   a selection module configured to determine a target font        category to be written in response to an operation of a user on        a display device page;    -   a determination module configured to determine a target font        conversion model corresponding to the target font category in a        model library, wherein the model library includes font        conversion models corresponding to a plurality of candidate        display font categories;    -   an input module configured to, in response to a writing        operation of the user on the display device page, determine a        standard word corresponding to the writing operation according        to a writing trajectory of the writing operation, and generate        an initial bitmap corresponding to the standard word; and    -   a conversion module configured to convert the initial bitmap of        the standard word into a target bitmap corresponding to the        target font category using the target font conversion model and        displaying the target bitmap on the display device page.

According to an aspect of the present disclosure, there is provided acomputer-readable storage medium. When the program is executed by aprocessor, the processor is caused to perform the informationpresentation method according to any one of the above embodiments.

According to an aspect of the present disclosure, there is provided anelectronic device, including:

-   -   a processor; and    -   a memory for storing one or more programs which, when executed        by one or more processors, cause the one or more processors to        perform the information presentation method according to any one        of the above embodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

The accompanying drawing, which are incorporated herein and form a partof the specification, illustrate the embodiments of the presentdisclosure and, together with the description, further serve to explainthe principles of the embodiments of the present disclosure. Obviously,the drawings in the following description are only some embodiments ofthe present disclosure. For those of ordinary skill in the art, otherdrawings can be obtained based on these drawings without creative work.

FIG. 1 schematically shows a flowchart of an information presentationmethod according to an example embodiment of the present disclosure.

FIG. 2 shows a schematic diagram of a display device page in anannotation scenario according to an example embodiment of the presentdisclosure.

FIG. 3 schematically shows a flow chart of model library obtainingaccording to an example embodiment of the present disclosure.

FIG. 4 schematically shows a flow chart of converting an initiallydisplayed word by taking an electronic whiteboard as an exampleaccording to an example embodiment of the present disclosure.

FIG. 5 shows a schematic diagram of the composition of an informationpresentation device according to an example embodiment of the presentdisclosure.

FIG. 6 schematically shows a schematic structural diagram of a computersystem suitable for implementing an electronic device according to anexample embodiment of the present disclosure.

FIG. 7 schematically shows a schematic diagram of a computer-readablestorage medium according to some embodiments of the present disclosure.

DETAILED DESCRIPTION

Example embodiments will now be described more fully with reference tothe accompanying drawings. However, the example embodiments can beimplemented in various forms and should not be construed as limited tothe examples set forth herein; rather, providing these embodiments makesthe present disclosure more comprehensive and complete, and conveys theconcepts of the example embodiments comprehensively to those skilled inthe art. The described features, structures, or characteristics may becombined in any suitable manner in one or more embodiments.

In addition, the drawings are merely schematic illustrations of thepresent disclosure and are not necessarily drawn to scale. The samereference numerals in the drawings represent the same or similar parts,and thus repeated descriptions thereof will be omitted. Some blockdiagrams shown in the drawings are functional entities and do notnecessarily correspond to physically or logically independent entities.These functional entities may be implemented in the form of software, orimplemented in one or more hardware modules or integrated circuits, orimplemented in different networks and/or processor devices and/ormicrocontroller devices.

In an example embodiment, an information presentation method is firstprovided. The method may be applied to a display device with anintelligent interactive function, for example, applied to an electronicwhiteboard system, where words input by a user on the electronicwhiteboard may be converted, using the information presentation method,to a personalized font which is set and selected by the user and theconverted font may be displayed. Referring to FIG. 1 , the informationpresentation method may include the following steps:

In S110, a target font category to be written is determined in responseto an operation of a user on a display device page.

In S120, a target font conversion model corresponding to the target fontcategory is determined in a model library. The model library includesfont conversion models corresponding to a plurality of font categories.

In S130, in response to a writing operation of the user on the displaydevice page, a standard word corresponding to the writing operation isdetermined according to a writing trajectory of the writing operation,and an initial bitmap corresponding to the standard word is generated.

In S140, the initial bitmap of the standard word is converted into atarget bitmap corresponding to the target font category using the targetfont conversion model and the target bitmap is displayed on the displaydevice page.

As compared with related art, in the information presentation methodprovided in this example embodiment, when inputting words on a touchdisplay device, a user may first determine a target font category. Then,the target font conversion model in the model library is determinedaccording to the target font category. Using the target font conversionmodel, the initial bitmap of a standard word corresponding to the user'swriting operation is converted into the target bitmap corresponding tothe target font category and the target bitmap is displayed on thedisplay device page. On the one hand, versatile fonts can be displayedon the touch display device, and display effects can be improved. On theother hand, the target bitmap of the target font category is generatedusing the pre-trained font conversion model, without setting a completetarget font category library. Thus, the storage pressure on the serveris reduced. On the other hand, through the font conversion model can betrained with a small amount of data, and personalized fonts for avariety of users can be designed, thereby avoiding the copyright problemcaused by using existing complete font libraries.

Hereinafter, each step of the information presentation method will bedescribed in more detail with reference to the accompanying drawings andembodiments.

In step S110, a target font category to be written is determined inresponse to an operation of a user on a display device page.

In an example embodiment of the present disclosure, when the user needsto input words on the display device page, a server may determine thetarget font category to be written in response to the user's operationon the display device page. Specifically, the server may respond to aselection operation on at least one candidate display font category onthe display device page, and determines a candidate display fontcategory corresponding to the selection operation as the target fontcategory. The at least one candidate display font category includes atleast multiple types, which may be existing fonts or user's personalizedfont(s), and embodiments of the present disclosure do not imposespecific limitations on this.

In an example implementation, referring to FIG. 2 , the informationpresentation method may be applied to an annotation scenario. The servermay first respond to an annotation start operation of the user,determine a to-be-annotated area 211 on the display device page 210, anddisplay a selection interface 212 for candidate display font categorieson the to-be-annotated area 211. Then, the server may respond to a firstoperation of the user on the candidate font selection interface 212, andpresent multiple candidate display font categories. Finally, the servermay respond to a touch operation of the user on a category on theinterface for presenting the candidate display font categories todetermine the target font category.

In another example embodiment of the present disclosure, the fontselection interface 212 may be displayed outside the to-be-annotatedarea 211, and an arrow may be used to indicate that the font selectioninterface 212 is used for selecting a font category of an annotated wordin the to-be-annotated area 211.

It should be noted that there are many ways to select fonts. Forexample, a variety of candidate display font categories are displayeddirectly in a preset area of the above-mentioned display device page.The user may select the target font category by tapping, or the user maydetermine the target font category by voice input. As another example, acorrespondence between gestures and candidate font categories is set inthe display device, and the user selects different target fontcategories through different gestures. The selection of the target fontcategory is not specifically limited in embodiments of the presentdisclosure.

When the method is adopted in the annotation scenario, the confusionbetween the initially displayed words and the annotation words can beavoided. For example, the user may continue to complete the remainingwork after completing the annotation, and the user can clearlydistinguish the annotation words from the initially displayed wordsduring playback.

Secondly, the above-mentioned font selection interface can respond toselection operations of different users, that is, multiple users can usedifferent fonts to annotate at the same time. In other words, there maybe multiple to-be-annotated areas, and in this case, different users usedifferent fonts to annotate, which can distinguish the annotation wordsof users well, and meanwhile the method can meet the needs of differentusers and improve user experience.

In step S120, a target font conversion model corresponding to the targetfont category is determined in a model library. The model libraryincludes font conversion models corresponding to a plurality of fontcategories.

Referring to FIG. 3 , the model library may be obtained by training aninitial model. The following steps S310 to S320 may be included, whichare described in detail below:

In step S310, an initial model with bitmap(s) corresponding to standardfont(s) as an input and bitmap(s) corresponding to candidate displayfont category(categories) as an output is provided.

In this example implementation, an initial model may be provided first.The input of the initial model is the bitmap(s) corresponding to thestandard font(s), and the output of the initial model is the bitmap(s)corresponding to candidate display font category (or candidate displayfont categories).

In an example embodiment, the initial model may use a top-downconvolutional neural network model, or a fully connected neural networkmodel, a recurrent neural network model, etc., which are notspecifically limited in this example embodiment.

In step S320, the initial model is trained by using the bitmap(s) of thestandard font(s) and the bitmap(s) of the candidate display font(s) astraining data to obtain a variety of font conversion modelscorresponding to the candidate display fonts, and the model library isestablished according to the variety of font conversion models.

In an example embodiment, training data may be obtained first. Bitmapsof standard fonts of multiple words and bitmaps of candidate displayfont categories corresponding to the multiple words may be obtained astraining data. The training of the initial model is completed by usingthe above training, and font conversion models corresponding to multiplecandidate display fonts may be obtained. The multiple font conversionmodels can be encapsulated as the above model library.

Specifically, the bitmaps of the standard fonts of the above multiplewords are used as input. Comparison of error between the output and thebitmaps of the candidate display font categories corresponding to themultiple words is made. The loss function adopted by the convolutionalneural network of the above initial model is determined, and a lossfunction value is calculated. Specifically, the MSE loss function may beused to calculate the loss function value. After the calculation of theloss function value is completed, the Momentum algorithm may be used tooptimize the convolutional neural network in the initial model andadjust the parameters of the convolutional neural network. Theparameters with the smallest loss function value are used as the finalparameter values of the convolutional neural network in the initialmodel, the training of the initial model is completed, and the fontconversion model is obtained.

In an example embodiment, the server may perform matching in the modellibrary according to the target font category selected in the above stepS110 to find a font conversion model corresponding to the target fontcategory as the target font conversion model.

In step S130, in response to a writing operation of the user on thedisplay device page, a standard word corresponding to the writingoperation is determined according to a writing trajectory of the writingoperation, and an initial bitmap corresponding to the standard word isgenerated.

In an example implementation of the present disclosure, the standardfont is a font initially displayed on the display device page, which maybe commonly used font formats such as SimSun or KaiTi, or can becustomized according to user requirements, and embodiments of thepresent disclosure do not impose specific limitations on this.

In an example embodiment, a bitmap is made up of individual dots ofpixels. These dots may be arranged and dyed differently to form apattern. An initial bitmap is a bitmap corresponding to a standard word.

In an example implementation, the server may respond to the user'swriting operation on the display device page, detect the movementtrajectory of the writing operation, and determine the standard word(s)corresponding to the writing operation according to the movementtrajectory. Specifically, the server may first obtain a standard wordfile library, obtain the standard word corresponding to the writingtrajectory in the standard word file library according to the writingtrajectory, and then use the standard word file library to determine avector outline shape corresponding to the standard word. Then, thestandard bitmap of the standard word corresponding to the writingoperation is obtained by rendering the vector outline shape.

In an example embodiment, when the user performs a writing operation, afont size, a font line thickness, a font color, etc. of the target fontfile category may be determined first. The font color may includemultiple colors, such as black, red, green, etc., and the font color mayalso be customized according to requirements, which are not specificallylimited in this example embodiments.

In an example embodiment, there may be a plurality of font linethicknesses, or the font line thickness may be customized according touser's needs, which is not specifically limited in this exampleembodiments. Also, there may be a plurality of font sizes, and relatedsettings of font size in related art may be referred to. Alternatively,the font size may be customized according to requirements, which is notspecifically limited in this example embodiment.

In step S140, the initial bitmap of the standard word is converted intoa target bitmap corresponding to the target font category using thetarget font conversion model and the target bitmap is displayed on thedisplay device page.

In an example embodiment of the present disclosure, after obtaining theinitial bitmap of the standard font, the target font conversion modelmay be used to convert the initial bitmap of the standard font into thetarget bitmap corresponding to the target font category and the targetbitmap may be displayed on the display device page.

In an example embodiment of the present disclosure, the font of aninitially displayed word on the display device page may be a standardfont. When a user needs to convert a font that already exists on thedisplay device page, the server may, in response to the user's selectionoperation for selecting at least one initially displayed word, obtainbitmaps of the initially displayed words; and, in response to the user'sfirst font conversion operation on the initially displayed words,determine a first font category in the candidate display font categoriescorresponding to the first font conversion operation, and at the sametime determine a first font conversion model corresponding to the firstfont conversion category in the model library. Then, the server may usethe first font conversion model to convert the bitmaps of the pluralityof initially displayed fonts into the first bitmaps, respectively. Then,the server may determine the position information of the bitmaps of theinitially displayed words, use the position information to arrange theplurality of first bitmaps obtained, and finally replace the bitmaps ofthe above-mentioned initially displayed words with the arranged firstbitmaps to complete the conversion of the initially displayed words.

In an example implementation, the font category of the initiallydisplayed font is a font category configured inside the display device,that is, the above standard font, which may be commonly used fontformats such as SimSun and KaiTi, or may be customized according torequirements, and embodiments of the present disclosure do not imposespecific limitations on this.

The flow of font conversion for the initially displayed font in theabove information presentation method will be further described belowthrough a example embodiment.

Specifically, in this example embodiment, referring to FIG. 4 , thesituation where the display device is an electronic whiteboard is takenas an example for description. In response to the user's first fontconversion operation on the initially displayed font, first, step S401may be performed. After the electronic whiteboard is started, aninitialization process is performed in the background: the fontstylization algorithm is initialized. The algorithm uses a fontconversion model. During training of the model, the input data of themodel is the bitmaps of standard fonts, and the output data is thebitmaps of the desired candidate display fonts, for example, certaincalligraphy font images. Then, step S402 may be performed, and theelectronic whiteboard initializes the FreeType font engine library(FT_Library) in the background. And, steps S403 and S404 may beperformed, and the whiteboard uses the FreeType font engine library toload the font file used by the input data of the font conversion modelused by the font stylization algorithm, i.e., the standard font filelibrary, so as to complete the initialization of the electronicwhiteboard.

Next, step S405 may be performed, where the user selects the initiallydisplayed words which are to be converted on the whiteboard writinginterface. After selection, steps S406 and S407 may be performed, andthe whiteboard interface pops up a font selection interface forcandidate display fonts near the currently selected words for the userto choose which font (such as calligraphy, KaiTi, handwriting, etc.) toconvert the words into, and at the same time a font size selectioninterface is displayed for the user to select an appropriate font size.After the selection of the first font type and font size is completed,step S408 and step S409 may be performed, the electronic whiteboardloads, in the background, a corresponding first font conversion modelaccording to the first font category selected by the user, and sets thefont size for rendering. Specifically, the electronic whiteboard, in thebackground, sets the size of the first font category in the FreeTypefont engine library according to the font size to be displayed andselected by the user. Then, steps S410 and S411 may be performed tostart the rendering procedure. Then, step S412 may be performed, and theelectronic whiteboard, in the background, renders the words which areselected by the user and need to be rendered on a single characterbasis. For the characters for the input initially displayed words, thewhiteboard, in the background, queries glyph indexes corresponding tothe characters in the set standard font file library through theFreeType font engine library. Step S413 is performed to determinewhether the font format in step S401 is of a specified size. If the fontformat loaded when the FreeType font engine library is initialized isnot a fixed-size font, steps S414 and S415 are then performed, and thevector outline shapes of the glyphs corresponding to the characters areobtained through the FreeType font engine library according to thecurrent glyph indexes. Then, step S416 is performed, and the electronicwhiteboard in the background renders the vector outline shapes throughthe FreeType font engine library to obtain bitmaps of the initialdisplayed words.

In an example embodiment, a vector outline shape is a vector diagram ofa font outline, also known as an object-oriented image or a drawingimage, mathematically defined as a series of points connected by lines.Graphical elements in a vector file are called objects. Each object is aself-contained entity with properties such as color, shape, outline,size, and screen position.

If, for example, the font format loaded when the FreeType font enginelibrary is initialized is a fixed-size font, step S416 is directlyperformed, and the bitmaps of the initially displayed words are obtainedthrough the FreeType font engine library according to the current glyphindexes.

Afterwards, steps S417 and S18 may be performed, and the electronicwhiteboard, in the background, inputs the bitmaps of the initial glyphsinto the first font conversion model for font conversion to obtain andoutput the first bitmaps. After the first bitmaps are output, step S419is performed to determine whether the last character of the initiallydisplayed words is rendered. If the rendering is completed, steps S420and S421 are performed. The electronic whiteboard in the backgroundperforms conversion of all the words in the initially displayed words,and splices the obtained first bitmaps into a single bitmap according tothe previous arrangement of the initially displayed words. Thewhiteboard interface hides the selected initially displayed words anddisplays the spliced first bitmap in the display position of theinitially displayed words. If the rendering is completed, return to stepS411 until the conversion of all the initially displayed words iscompleted.

In an example embodiment of the present disclosure, when a user needs toperform conversion of the font of the obtained target word category, asecond font conversion operation of the target font may be obtained, andthe initial bitmap corresponding to the target font may be obtained.Since the target bitmap is obtained by converting the initial bitmapusing a target font conversion model and the initial bitmap can bestored after conversion, the initial bitmap corresponding to the targetbitmap can be directly obtained.

Then, a second font category corresponding to the second word conversionoperation may be obtained, a second font conversion model correspondingto the second font category may be determined in the above modellibrary, and the initial bitmap may be converted into a second bitmap byusing the second font conversion model to replace the above targetbitmap with the second bitmap to complete the word conversion of thetarget font.

The device embodiments of the present disclosure will be introducedbelow, which can be used to perform the above-mentioned informationpresentation method of the present disclosure. In addition, in anexample embodiment of the present disclosure, an informationpresentation device is provided. Referring to FIG. 5 , the informationpresentation device 500 includes: a selection module 510, adetermination module 520, an input module 530 and a conversion module540.

The selection module 510 may be configured to determine a target fontcategory to be written in response to an operation of a user on adisplay device page.

The determination module 520 may be configured to determine a targetfont conversion model corresponding to the target font category in amodel library, wherein the model library includes font conversion modelscorresponding to a plurality of candidate display font categories.

The input module 530 may be configured to, in response to a writingoperation of the user on the display device page, determine a standardword corresponding to the writing operation according to a writingtrajectory of the writing operation, and generate an initial bitmapcorresponding to the standard word.

The conversion module 540 may be configured to convert the initialbitmap of the standard word into a target bitmap corresponding to thetarget font category using the target font conversion model anddisplaying the target bitmap on the display device page.

Since functional modules of the information presentation device of theexample embodiments of the present disclosure correspond to steps of theabove-mentioned example embodiment of the information presentationmethod, for details not disclosed in the embodiments of the device ofthe present disclosure, reference may be made to the above-mentioneddescription regarding the information presentation method of the presentdisclosure.

It should be noted that although several modules or units of the devicesfor action execution are described above, such division is notmandatory. In fact, according to the embodiments of the presentdisclosure, the features and functions of two or more modules or unitsdescribed above may be embodied in one module or unit. Conversely, thefeatures and functions of a module or unit described above can befurther divided into multiple modules or units.

In addition, an example embodiment of the present disclosure alsoprovides an electronic device capable of implementing the aboveinformation presentation.

Those skilled in the art can understand that various aspects of thepresent disclosure may be implemented as a system, method, or programproduct. Therefore, various aspects of the present disclosure can beembodied in the following forms: a complete hardware implementation, acomplete software implementation (including firmware, microcode, etc.),or a combination of hardware and software, which can be collectivelyreferred to as “circuit”, “module”, or “system”.

An electronic device 600 according to an example embodiment of thepresent disclosure is described below with reference to FIG. 6 . Theelectronic device 600 shown in FIG. 6 is only an example, and should notimpose any limitation on the functions and scope of use of theembodiments of the present disclosure.

As shown in FIG. 6 , the electronic device 600 is shown in the form of ageneral-purpose computing device. The components of the electronicdevice 600 may include, but are not limited to, at least one processingunit 610, at least one storage unit 620, and a bus 630 connectingdifferent system components (including the storage unit 620 and theprocessing unit 610), and a display unit 640.

The storage unit stores program codes, and the program codes can beexecuted by the processing unit 610, so that the processing unit 610executes various example embodiments according to the present disclosuredescribed in the “exemplary methods” section of the presentspecification. For example, the processing unit 610 may perform thesteps shown in FIG. 1 . In S110, a target font category to be written isdetermined in response to an operation of a user on a display devicepage. In S120, a target font conversion model corresponding to thetarget font category is determined in a model library. The model libraryincludes font conversion models corresponding to a plurality of fontcategories. In S130, in response to a writing operation of the user onthe display device page, a standard word corresponding to the writingoperation is determined according to a writing trajectory of the writingoperation, and an initial bitmap corresponding to the standard word isgenerated. In S140, the initial bitmap of the standard word is convertedinto a target bitmap corresponding to the target font category using thetarget font conversion model and the target bitmap is displayed on thedisplay device page.

For another example, the electronic device can implement the varioussteps shown in FIG. 1 to FIG. 4 .

The storage unit 620 may include a readable medium in the form of avolatile storage unit, such as a random access storage unit (RAM) 621and/or a cache storage unit 622, and may further include a read-onlystorage unit (ROM) 623.

The storage unit 620 may further include a program/utility tool 624having a set (at least one) of program modules 625. Such program modules625 include, but are not limited to, an operating system, one or moreapplication programs, other program modules, and program data. Each orsome combination of these examples may include an implementation of anetwork environment.

The bus 630 may be one or more of several types of bus structures,including a memory unit bus or a memory unit controller, a peripheralbus, a graphics acceleration port, a processing unit, or a local areabus using any bus structure in a variety of bus structures.

The electronic device 600 may also communicate with one or more externaldevices 670 (such as a keyboard, a pointing device, a Bluetooth device,etc.), and may also communicate with one or more devices that enable auser to interact with the electronic device 600, and/or may alsocommunicate with any device (such as a router, a modem) that can enablethe electronic device 600 to interact with one or more other computingdevices. Such communication can be performed through an input/output(I/O) interface 650. Moreover, the electronic device 600 may alsocommunicate with one or more networks (such as a local area network(LAN), a wide area network (WAN), and/or a public network, such as theInternet) through the network adapter 660. As shown in the figure, thenetwork adapter 660 communicates with other modules of the electronicdevice 600 through the bus 630. It should be understood that althoughnot shown in the figure, other hardware and/or software modules may beused in conjunction with the electronic device 900, including but notlimited to: microcode, device drivers, redundant processing units,external disk drive arrays, RAID systems, tape drives and data backupstorage systems.

Through the description of the foregoing embodiments, those skilled inthe art can easily understand that the example embodiments describedherein can be implemented by software, or by software in combinationwith necessary hardware. Therefore, the technical solutions according tothe embodiments of the present disclosure may be embodied in the form ofa software product, and the software product may be stored in anon-volatile storage medium (which may be a CD-ROM, a U disk, a mobilehard disk, etc.) or on a network. The software product may includeinstructions to cause a computing device (which may be a personalcomputer, a server, a terminal device, or a network device, etc.) toexecute the methods according to exemplary embodiments of the presentdisclosure.

An exemplary embodiment of the present disclosure also provides acomputer-readable storage medium having stored thereon a program productcapable of implementing the above methods according to embodiments ofthe present disclosure. In some possible implementations, aspects of thepresent disclosure may also be implemented in the form of a programproduct, which includes program codes. When the program product is runon a terminal device, the program codes are used to cause the terminaldevice to perform the steps according to various exemplary embodimentsof the present disclosure described in the above-mentioned exemplarymethods.

FIG. 7 shows a program product 700 for implementing the above methodsaccording to an exemplary embodiment of the present disclosure. Theprogram product 1000 may be stored by a portable compact disc read-onlymemory (CD-ROM) and include program codes, and may be executed on aterminal device, such as a personal computer. However, the programproduct of the present disclosure is not limited thereto. The readablestorage medium may be any tangible medium containing or storing aprogram, and the program may be used by an instruction execution system,apparatus, or device, or the program may be used in combination with aninstruction execution system, apparatus, or device.

The program product may employ any combination of one or more readablemediums. The readable medium may be a readable signal medium or areadable storage medium. The readable storage medium may be, forexample, but is not limited to, an electronic, magnetic, optical,electromagnetic, infrared, or semiconductor system, apparatus, ordevice, or any combination thereof. More specific examples(non-exhaustive examples) of readable storage media include: electricalconnection with one or more wires, portable disk, hard disk, randomaccess memory (RAM), read-only memory (ROM), erasable programmableread-only memory (EPROM or flash memory), optical fiber, portablecompact disc read-only memory (CD-ROM), optical storage device, magneticstorage device, or any suitable combination of the foregoing.

The computer-readable signal medium may include a data signal inbaseband or propagated as part of a carrier wave, which carries readableprogram codes. Such a propagated data signal may have many forms,including but not limited to electromagnetic signals, optical signals,or any suitable combination of the foregoing. The readable signal mediummay also be any readable medium other than a readable storage medium,and the readable medium may send, propagate, or transmit a program thatis used by an instruction execution system, apparatus, or device, orthat is used in combination with an instruction execution system,apparatus, or device.

The program codes contained on the readable medium may be transmittedusing any appropriate medium, including but not limited to wireless,wired, optical fiber, RF, etc., or any suitable combination of theforegoing.

The program codes for performing the operations of the presentdisclosure can be written in any combination of one or more programminglanguages, which include object-oriented programming languages, such asJava, C++, and so on. The programming languages also includeconventional procedural programming language, such as “C” or a similarprogramming language. The program codes can be executed entirely on theuser computing device, can be executed partly on the user device, can beexecuted as an independent software package, can be executed partly onthe user computing device and partly on a remote computing device, orcan be executed entirely on the remote computing device or server. Inthe case of a remote computing device, the remote computing device canbe connected to the user computing device through any kind of network,including a local area network (LAN) or a wide area network (WAN), orthe remote computing device can be connected to an external computingdevice, for example, by the Internet provided by the Internet serviceproviders.

In addition, the drawings are merely schematic descriptions of processesincluded in the methods according to exemplary embodiments of thepresent disclosure, and are not for limiting the present disclosure. Itis easy to understand that the processes shown in the drawings do notindicate or limit the chronological order of these processes. Inaddition, it is also easy to understand that these processes may beperformed synchronously or asynchronously in multiple modules, forexample.

Those skilled in the art will readily contemplate other embodiments ofthe present disclosure after considering the specification andpracticing the disclosure. The present disclosure is intended to coverany variations, uses, or adaptive changes of the present disclosure.These variations, uses, or adaptive changes follow the generalprinciples of the present disclosure and include the common generalknowledge or conventional technical means in this art which is notdescribed herein. The specification and examples should be considered asexemplary only, and the true scope and spirit of the disclosure shouldbe defined by the appended claims.

It is to be understood that the present disclosure is not limited to theprecise structures described above and illustrated in the accompanyingdrawings, and that various modifications and changes may be made withoutdeparting from the scope of the present disclosure. The scope of thepresent disclosure is limited only by the appended claims.

1. An information presentation method, comprising: determining a target font category to be written in response to an operation of a user on a display device page; determining a target font conversion model corresponding to the target font category in a model library, wherein the model library comprises font conversion models corresponding to a plurality of font categories; in response to a writing operation of the user on the display device page, determining a standard word corresponding to the writing operation according to a writing trajectory of the writing operation, and generating an initial bitmap corresponding to the standard word; and converting the initial bitmap of the standard word into a target bitmap corresponding to the target font category using the target font conversion model and displaying the target bitmap on the display device page.
 2. The method according to claim 1, wherein determining the target font category to be written in response to the operation of the user on the display device page comprises: determining the target font category to be written in response to a selection operation of the user on one category of at least one candidate display font category displayed on the display device page.
 3. The method according to claim 1, wherein before responding to the writing operation of the user on the display device page, the method further comprises: determining a font size, a font line thickness, a font color and a font inclination angle of the target font category.
 4. The method according to claim 1, wherein in response to the writing operation of the user on the display device page, determining the standard word corresponding to the writing operation according to the writing trajectory of the writing operation, and generating the initial bitmap corresponding to the standard word comprises: in response to a word writing operation of the user, performing matching in a standard font file library according to the writing trajectory to find a standard word corresponding to the word writing operation; and generating the initial bitmap of the standard word.
 5. The method according to claim 4, wherein generating the initial bitmap of the standard word comprises: obtaining a vector outline shape of the standard word from the standard font file library; and performing rendering according to the vector outline shape to obtain the initial bitmap.
 6. The method according to claim 2, further comprising: in response to an annotation starting operation, determining a to-be-annotated area, and displaying a selection interface for the at least one candidate display font category in the to-be-annotated area.
 7. The method according to claim 6, wherein determining the target font category to be written in response to the selection operation of the user on one category of at least one candidate display font category displayed on the display device page comprises: in response to a first operation on a font selection interface, presenting the at least one candidate display font category; and determining the target font category in response to a touch operation on a category on a presentation interface for presenting the at least one candidate display font category.
 8. The method according to claim 1, wherein the display device page has a font category of an initially displayed font, and a font category of an initially displayed word is a standard font; wherein the method further comprises: in response to a first font conversion operation of the user on the initially displayed word, obtaining a bitmap of the initially displayed word, and determining a first font category corresponding to the first font conversion operation in the candidate display font category; determining a first font conversion model corresponding to the first font category in the model library; and converting the bitmap of the initially displayed word into a first bitmap corresponding to the first font category using the first font conversion model.
 9. The method according to claim 8, wherein obtaining the bitmap of the initially displayed word in response to the first font conversion operation of the user on the initially displayed word, comprises: selecting at least one initially displayed word which is to be converted; and in response to a font conversion operation on the at least one initially displayed word which is to be converted, obtaining a bitmap of the at least one initially displayed word which is to be converted.
 10. The method according to claim 9, wherein converting the bitmap of the initially displayed word into the first bitmap corresponding to the first font category using the first font conversion model comprises: determining position information of the bitmap of the at least one initially displayed word which is to be converted; converting the bitmap of the at least one initially displayed word into the first bitmap using the first font conversion model; and arranging at least one first bitmap according to the position information, and replacing, with the arranged first bitmap, the bitmap of the at least one initially displayed word which is to be converted.
 11. The method according to claim 1, wherein after converting the initial bitmap of the standard word into the target bitmap corresponding to the target font category using the target font conversion model and displaying the target bitmap on the display device page, the method further comprises: in response to a second font conversion operation on a target font, obtaining an initial bitmap corresponding to the target bitmap; determining a second font category corresponding to the second font conversion operation in at least one candidate display font category, and determining a second font conversion model corresponding to the second font category in the model library; and converting the initial bitmap into a second bitmap corresponding to the second font category using the second font conversion model, and replacing the target bitmap.
 12. The method according to claim 1, wherein an input of the font conversion model is a bitmap corresponding to a standard font, and an output of the font conversion model is a bitmap corresponding to a candidate display font category.
 13. (canceled)
 14. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, causes the processor to perform: determining a target font category to be written in response to an operation of a user on a display device page; determining a target font conversion model corresponding to the target font category in a model library, wherein the model library comprises font conversion models corresponding to a plurality of font categories; in response to a writing operation of the user on the display device page, determining a standard word corresponding to the writing operation according to a writing trajectory of the writing operation, and generating an initial bitmap corresponding to the standard word; and converting the initial bitmap of the standard word into a target bitmap corresponding to the target font category using the target font conversion model and displaying the target bitmap on the display device page.
 15. An electronic device, comprising: a processor; and a memory for storing one or more programs which, when executed by one or more processors, cause the one or more processors to: determine a target font category to be written in response to an operation of a user on a display device page; determine a target font conversion model corresponding to the target font category in a model library, wherein the model library comprises font conversion models corresponding to a plurality of font categories; in response to a writing operation of the user on the display device page, determine a standard word corresponding to the writing operation according to a writing trajectory of the writing operation, and generate an initial bitmap corresponding to the standard word; and convert the initial bitmap of the standard word into a target bitmap corresponding to the target font category using the target font conversion model and display the target bitmap on the display device page.
 16. The electronic device according to claim 15, wherein the processor is configured to: determine the target font category to be written in response to a selection operation of the user on one category of at least one candidate display font category displayed on the display device page.
 17. The electronic device according to claim 15, wherein before responding to the writing operation of the user on the display device page, the processor is configured to: determine a font size, a font line thickness, a font color and a font inclination angle of the target font category.
 18. The electronic device according to claim 15, wherein the processor is configured to: in response to a word writing operation of the user, perform matching in a standard font file library according to the writing trajectory to find a standard word corresponding to the word writing operation; and generate the initial bitmap of the standard word.
 19. The electronic device according to claim 18, wherein the processor is configured to: obtain a vector outline shape of the standard word from the standard font file library; and perform rendering according to the vector outline shape to obtain the initial bitmap.
 20. The electronic device according to claim 16, wherein the processor is further configured to: in response to an annotation starting operation determine a to-be-annotated area, and displaying a selection interface for the at least one candidate display font category in the to-be-annotated area.
 21. The electronic device according to claim 20, wherein the processor is configured to: in response to a first operation on a font selection interface, present the at least one candidate display font category; and determine the target font category in response to a touch operation on a category on a presentation interface for presenting the at least one candidate display font category. 